package cn.aws360.boot.system.api.pojo.request;

import cn.aws360.boot.base.api.validation.ValidationGroup;
import cn.aws360.boot.system.api.pojo.response.SysFileModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.util.List;

/**
 * @author junnan
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("系统文件-写入实例")
public class SysFileWrite {

    @ApiModelProperty(value = "容器名称", required = true)
    @NotBlank(message = "容器名称 bucket 不能为空", groups = {ValidationGroup.add.class})
    private String bucket;

    @ApiModelProperty(value = "文件目录", required = true)
    @NotBlank(message = "文件目录 directory 不能为空", groups = {ValidationGroup.add.class})
    private String directory;

    @ApiModelProperty(value = "文件列表")
    private List<SysFileModel> file;

}
